import service from '../utils/request'


//===============封装请求接口
// 登陆请求接口
export function user_login(payload = {}) {
    return service.post('/api/user/login', payload)
}

// 首页-导航请求接口
export function index_nav(payload = {}) {
    return service.get('/api/index/nav', { params: payload })
}
// 首页-推荐列表请求接口
export function index_goodlist(payload = {}) {
    return service.get('/api/index/goodlist', { params: payload })
}
// 分类 --一级分类
export function category_list(payload = {}) {
    return service.get('/api/category/list', { params: payload })
}

// 分类 --二三级分类
export function category_subcate(payload = {}) {
    return service.get('/api/category/subcate', { params: payload })
}